package me.lovatcat.springboot.demo.web.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author acat on 2017-01-09 13:43
 */
@RestController
public class HelloController {

    @GetMapping("/hello")
    public String helloGet(){
        return "hello get!";
    }

    @PostMapping("/hello")
    public String helloPost(){
        return "hello post!";
    }
}
